import { createRouter, createWebHistory } from "vue-router";
const router = createRouter({
    history: createWebHistory(),
    mode: 'history',
    routes:[
        {
            path: '/',
            name: '首页',
            component:()=>import('../App.vue'),
            redirect: '/home'
        },
        {
            path:'/home',
            name: 'home',
            component:()=>import('../views/home.vue'),
        },
        {
            path:'/about',
            name:'about',
            component:()=>import('../views/about.vue')
        },
        {
            path:'/intro',
            name:'intro',
            component:()=>import('../views/intro.vue')
        }
    ]
});
export default router;